package com.modules.test;

import org.hibernate.event.internal.DefaultSaveEventListener;
import org.hibernate.event.spi.SaveOrUpdateEvent;

import com.wxp.entity.User;

public class MyPostSaveListener extends DefaultSaveEventListener{
 
	@Override
	public void onSaveOrUpdate(SaveOrUpdateEvent arg0) {
		super.onSaveOrUpdate(arg0);
		 Object entity = arg0.getEntity();
		 if(entity instanceof User){
			 
		 }
		
	}
}
